package com.kymatrix.mpo.plus.bpm.server.model.form.listener;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - BPM 流程监听器新增 Request")
@Data
@Accessors(chain=true)
public class SaveBpmProcessListenerReq {

    @ApiModelProperty(value = "监听器名字", example = "赵六")
    @NotEmpty(message = "监听器名字不能为空")
    private String name;

    @ApiModelProperty(value = "监听器类型", example = "execution")
    @NotEmpty(message = "监听器类型不能为空")
    private String type;

    @ApiModelProperty(value = "监听器状态 EnableType", example = "1")
    @NotNull(message = "监听器状态不能为空")
    private String status;

    @ApiModelProperty(value = "监听事件", example = "start")
    @NotEmpty(message = "监听事件不能为空")
    private String event;

    @ApiModelProperty(value = "监听器值类型", example = "class")
    @NotEmpty(message = "监听器值类型不能为空")
    private String valueType;

    @ApiModelProperty(value = "监听器值")
    @NotEmpty(message = "监听器值不能为空")
    private String value;

}
